package edu.sctu.wulixia.month6.day20150615;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created by user05 on 2015/6/16.
 */
public class InputStreamTest {
    public void getMess() throws IOException {
        FileInputStream inputStream = new FileInputStream("D://wulixia//www.txt");
        System.out.println(inputStream.available());
        byte[] ba = new byte[inputStream.available()];

        inputStream.read(ba);
        System.out.println(new String(ba));

        inputStream.close();
    }

}
